import { request } from '@gui-pkg/request';

enum Api {
  WarningRainfall = '/api/warninfo/page',
  findLogs = '/api/call/getLogsByMsgId',
  msgBackPage = '/api/call/pageMsg',
  pagePhone = '/api/call/pagePhone',
  countBack = '/api/call/countBack',
}

// 查询预警信息
export const getWarningRainfallApi = (params) => {
  return request.get({ url: Api.WarningRainfall, params });
};

export const getLogs = (params) => {
  return request.get({ url: Api.findLogs, params });
};

export const getMsgPageApi = (params) => {
  return request.get({ url: Api.msgBackPage, params });
};

export const getPhonePageApi = (params) => {
  return request.get({ url: Api.pagePhone, params });
};

export const countBack = (params) => {
  return request.get({ url: Api.countBack, params });
};

